<!DOCTYPE html>
<html>
<head>
    <style>
        #input {
            border: 8px solid #001681;
            border-radius: 13px;
            font-family: "Courier New", monospace;
            font-size: 70px;
        }
        #input #text-past {
            position: relative;
            line-height: 80px;
            width: 50%;
            background-color: #eeeeee;
            color: #cccccc;
            text-align: right;
            float: left;
            white-space: nowrap;
            overflow: hidden;
        }
        #input #text-future {
            position: relative;
            line-height: 80px;
            white-space: nowrap;
            overflow: hidden;
        }
        #input #text-future span.curtain {
            display: block;
            position: absolute;
            top: 0;
            right: 0;
            height: 80px;
            width: 120px;
            /* IE9 SVG, needs conditional override of 'filter' to 'none' */
            background: url();
            background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 100%); /* FF3.6+ */
            background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
            background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
            background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
            background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* IE10+ */
            background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%); /* W3C */
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-8 */
        }
        #input #text-past span.curtain {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            height: 80px;
            width: 120px;
            /* IE9 SVG, needs conditional override of 'filter' to 'none' */
            background: url();
            background: -moz-linear-gradient(left, rgba(238,238,238,1) 0%, rgba(238,238,238,1) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */
            background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(238,238,238,1)), color-stop(50%,rgba(238,238,238,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
            background: -webkit-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(238,238,238,1) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
            background: -o-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(238,238,238,1) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
            background: -ms-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(238,238,238,1) 50%,rgba(255,255,255,0) 100%); /* IE10+ */
            background: linear-gradient(to right, rgba(238,238,238,1) 0%,rgba(238,238,238,1) 50%,rgba(255,255,255,0) 100%); /* W3C */
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#00ffffff',GradientType=1 ); /* IE6-8 */        }
    </style>
</head>
<body>

<div id="input">
    <div id="text-past">
        <span class="text">sd f sd fs d fs df s df sd ff sd fs 1</span>
        <span class="curtain"></span>
    </div>
    <div id="text-future">
        <span class="text">1 sdfsdfs sdf s df s df s df s df sd f sd f sd f sd</span>
        <span class="curtain"></span>
    </div>
</div>

</body>
</html>